<template>
	<view>
		<tn-nav-bar  fixed>{{title}}</tn-nav-bar>
		<map style="width: 100%; height: 100vh;" :latitude="latitude" :longitude="longitude" :markers="covers"></map>
	</view>
</template>

<script>
export default {
	data() {
		return {
			title:"郑州·布芒的家共创社区",
			id:0, // 使用 marker点击事件 需要填写id
			latitude: 39.909,
			longitude: 116.39742,
			covers: []
		}
	},
	onLoad(e) {
		if(e.title) {
			this.title = e.title
		}
		
		if(e.lat) this.latitude = e.lat
		if(e.lng) this.longitude = e.lng
		
		this.covers.push({
			title:this.title,
			latitude: this.latitude,
			longitude: this.longitude,
			iconPath: 'https://www.zztengma.com/lihu/bumang/images/location.png'
		})
		
		//console.log(this.covers)
	},
	methods: {

	}
}
</script>

<style>

</style>
